#include "ChoiceWindow.h"
#include "ui_ChoiceWindow.h"

ChoiceWindow::ChoiceWindow(QWidget *parent) :
    BaseWindow(parent),
    ui(new Ui::ChoiceWindow)
{
    ui->setupUi(this);
    connect(ui->firstButton,SIGNAL(clicked()),this,SLOT(firstClicked()));
    connect(ui->secondButton,SIGNAL(clicked()),this,SLOT(secondClicked()));

}
void ChoiceWindow::SetText(const QString& text)
{
     ui->mText->setText(text);
}

void ChoiceWindow::SetFirst(const QString& text)
{
     ui->firstButton->setText(text);
}

void ChoiceWindow::SetSecond(const QString& text)
{
     ui->secondButton->setText(text);
}

void ChoiceWindow::firstClicked()
{
    emit onFirstClicked();
}

void ChoiceWindow::secondClicked()
{
    emit onSecondClicked();
}

ChoiceWindow::~ChoiceWindow()
{
    delete ui;
}
